package xin.yangshuai.basic01.gof23.builder;

public class DatabaseSqlDirector {

    private DatabaseSqlBuilder databaseSqlBuilder;

    public void setDatabaseSqlBuilder(DatabaseSqlBuilder databaseSqlBuilder) {
        this.databaseSqlBuilder = databaseSqlBuilder;
    }

    public DatabaseSql build(){
        if (databaseSqlBuilder != null) {
            return databaseSqlBuilder.database().sql().build();
        }
        return null;
    }
}
